<?php declare(strict_types=1);


namespace App\Logic;


use App\Exception\LogicException;

class CommonLogic
{
    /**
     * 检查变量为空
     * @param $param
     * @param $msg
     * @throws LogicException
     */
    public static function check($param, $msg): void
    {
        if(!$param)  {
            throw new LogicException($msg,500);
        }

    }
}